import { RoleModel } from './role'

export interface UserModel {
  id: number;
  username: string;
  name: string;
  roles: RoleModel[];
  role_ids: number[];
  permissions: string[];
}

export interface CreateUserParams {
  username: string;
  name: string;
  password: string;
  role_ids: number[];
}

export interface UpdateUserParams {
  name?: string;
  role_ids?: number[];
}

export interface ChangePasswordParams {
  old_password: string;
  new_password: string;
}

export interface ResetPasswordParams {
  user_id: number;
  new_password: string;
}

export interface GetUserListParams {
  name: string;
}
